package com.kczd.jinlan.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.Button;
import android.widget.TextView;

import com.kczd.jinlan.R;

/**
 * yang_g
 * 钱包
 * Created by Administrator on 2017/5/16.
 */

public class WalletActivity extends Activity implements View.OnClickListener {
    private TextView text_bank;//银行卡
    private TextView id_fanhui;//返回
    private TextView text_small;//零钱明细
    private Button but_recharge;//充值

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.wallet_activity);
    }

    @Override
    public void onContentChanged() {
        super.onContentChanged();
        text_bank = (TextView) findViewById(R.id.text_bank);
        text_bank.setOnClickListener(this);

        text_small= (TextView) findViewById(R.id.text_small);
        text_small.setOnClickListener(this);

        but_recharge= (Button) findViewById(R.id.but_recharge);
        but_recharge.setOnClickListener(this);

        id_fanhui= (TextView) findViewById(R.id.id_fanhui);
        id_fanhui.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.text_bank://绑定银行卡
                startActivity(new Intent(WalletActivity.this, BankActivity.class));
                break;
            case R.id.text_small://零钱明细
                startActivity(new Intent(WalletActivity.this, SmallActivity.class));
                break;
            case R.id.but_recharge://充值
                startActivity(new Intent(WalletActivity.this, RechargeActivity.class));
                break;
            case R.id.id_fanhui://返回
                finish();
                break;
        }
    }
}
